// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
    ssr: true,
    devtools: {enabled: false},
    modules: [
        '@element-plus/nuxt'
    ],
    elementPlus: { /** Options */},
    compatibilityDate: "2024-09-05",
    devServer: {
        host: "0.0.0.0",
        port: 3001,
    },
    // 全局参数
    runtimeConfig: {
        // 只在服务端可获取
        isServer: "1",
        public: {
            // 在服务端 + 客户端都能获取
            baseUrl: "http://192.168.1.231:10008"
        }
    },
    // 以下是静态化配置
    app: {
        baseURL: '/activity/',
        cdnURL: './'
    },
    experimental: {
        payloadExtraction: false,
    },
    nitro: {
        prerender: {
            routes: ['/', "/from.html", "/fromSuccess.html", "/search.html",
                '/a1.html', '/a2.html', '/a3.html', '/a4.html', '/a5.html', '/a6.html', '/a7.html', '/a8.html', '/a9.html', '/a10.html']
            // routes: ['/a6.html', '/a7.html', '/a8.html', '/a9.html', '/a10.html']
        }
    }
})